package top.codecrab.springcloud.service.impl;

import org.springframework.stereotype.Service;
import top.codecrab.springcloud.entity.Payment;
import top.codecrab.springcloud.mapper.PaymentMapper;
import top.codecrab.springcloud.service.PaymentService;

import javax.annotation.Resource;

/**
 * @author codecrab
 * @since 2021年05月14日 10:39
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    private PaymentMapper paymentMapper;

    @Override
    public int save(Payment payment) {
        return paymentMapper.save(payment);
    }

    @Override
    public Payment getById(Long id) {
        return paymentMapper.getById(id);
    }
}
